<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <script type="text/javascript" src="public/javascripts/jQuery.js"></script>
    <style>
        .data_success {
            margin: 300px auto;
            width: 80px;
            height: 40px;
            background: #5C801A;
            opacity: 0.9;
            line-height: 40px;
            text-align: center;
            transition: all 1s ease-in;
            border-radius: 5px;
        }
    </style>
</head>
<body>
<div class="data_success"><span class="str"></span></div>
<script>
    function show(str) {
        $('.data_success .str').text(str).fadeIn(0).delay(2000).fadeOut(1000, function () {
            $(".data_success").css({
                "opacity": "0"
            })
        });
    }
    show('修改成功');
</script>

</body>
</html>